﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace CLEX.DataContracts
{
    [DataContract]
    public class UserData
    {
        [DataMember]
        public int UserId { get; set; }

        [DataMember]
        public string Username { get; set; }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public bool IsAdmin { get; set; }

        public UserData(UserFullData userFull)
        {
            UserId = userFull.UserId;
            Username = userFull.Username;
            Email = userFull.Email;
            IsAdmin = userFull.IsAdmin;
        }

        public UserData()
        {
        }
    }
}